<template>
	<view class="mainpadding beijingse">
		<view class="flexbetween mainpadding ffffff radius">
			<view class="shilitu">
				<image :src="dataAll.stycinfo.image_text" mode=""></image>
			</view>
			<view class="" style="width: 74%;">
				<view class="ershib">{{dataAll.stycinfo.title}}</view>
				<view class="margin_top1 ershil">{{dataAll.stycinfo.des}}</view>
			</view>
		</view>
		<view class="mainpadding ffffff radius margin_top ">
			<view class="flexbetween">
				<view class="ershil">投入金额</view>
				<view class="huangsetext">¥{{dataAll.total_token_price}}</view>
			</view>
			<view class="flexbetween margin_top">
				<view class="ershil">累计收益</view>
				<view class="lvsetext">{{dataAll.total_sy_token_price<=0?dataAll.total_sy_token_price:'+'+dataAll.total_sy_token_price}}</view>
				<!-- <view class="hongsetext">-599.63</view> -->
			</view>
			<view class="flexbetween margin_top">
				<view class="ershil">订单编号</view>
				<view class="huisetext">{{dataAll.order.order_no}}</view>
			</view>
			<view class="flexbetween margin_top">
				<view class="ershil">投资时间</view>
				<view class="huisetext">{{dataAll.createtime_text}}</view>
			</view>
			<view class="flexbetween margin_top">
				<view class="ershil">结束时间</view>
				<view class="huisetext">{{dataAll.end_time_text}}</view>
			</view>
			<view class="flexbetween margin_top">
				<view class="ershil">支付方式</view>
				<view class="huisetext">{{dataAll.pay_type_text}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				listid:"",
				dataAll:{
					stycinfo:{
						image_text:"",
						title:"",
						des:""
					},
					total_token_price:"",
					total_sy_token_price:"",
					end_time_text:"",
					createtime_text:"",
					pay_type_text:"",
					order:{
						order_no:"",
						pay_type:"",
					}
				}
			}
		},
		onLoad(options) {
			this.listid = options.id
			this.init()
		},
		methods: {
			init() {
				httpRequest.request('/api/stycorder/myStycDetail', 'POST', {
					id:this.listid
				}, false, false, true).then(res => {
					this.dataAll = res.data
				}).catch(err => {
					httpRequest.toast(err.msg);
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.hongsetext{
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FF0000;
	}
	.huisetext{
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #666666;
	}
	.lvsetext {
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #28C445;
	}

	.huangsetext {
		font-size: 28rpx;
		font-family: PingFang SC-Heavy, PingFang SC;
		font-weight: 800;
		color: #FAB536;
	}

	.ershib {
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 800;
		color: #333333;
	}


	.shilitu {
		width: 134rpx;
		height: 128rpx;
		border-radius: 14rpx;

		image {
			width: 100%;
			height: 100%;
			border-radius: 14rpx;
		}
	}
</style>
